﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

namespace ARchGL.Platform.Migrations.TenantDb
{
    public partial class apilogs : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ZY_ApiLogs",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    ApiType = table.Column<int>(nullable: false),
                    Remark = table.Column<string>(nullable: true),
                    RequestData = table.Column<string>(nullable: true),
                    ResponseData = table.Column<string>(nullable: true),
                    TenantId = table.Column<int>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ZY_ApiLogs", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {

            migrationBuilder.DropTable(
                name: "ZY_ApiLogs");
        }
    }
}
